@echo off
echo 启动Wabtec Console生产环境...

REM 激活conda环境并启动后端
conda activate wabtec_backend
if errorlevel 1 (
    echo 错误：无法激活conda环境 wabtec_backend
    pause
    exit /b 1
)

REM 启动后端服务
start "Wabtec Backend" /min cmd /k "uvicorn main:app --port 8001"

echo 后端服务已启动在端口8001
echo 请等待Electron应用启动...